package com.wy.component.properties;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URL;
import java.util.Properties;


public class PropertiesUtil {
	
    public String getAppProperties(String key) throws FileNotFoundException, IOException {
    	URL url = this.getClass().getClassLoader().getResource("/");
    	Properties property = new Properties();
    	property.load(new FileInputStream(url.getPath() + "resources/app.properties"));
    	return property.getProperty(key);
    }
    
}
